import { createApp } from 'vue'
import App from './App.vue'

// 引入element-plus包
import ElementPlus from 'element-plus'
// 引入element-plus样式
import 'element-plus/theme-chalk/index.css';
//
import * as Icons from '@element-plus/icons-vue'

// store
import { store } from './store'

// icon
// import icon from './icons'
// router
import router from './router';

const app = createApp(App);

//
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key])
})
//
app
.use(ElementPlus)
.use(store)
.use(router)
// .use(icon)
.mount('#app')
